
<form method="post" action="{[$root]}{[$postLink]}{[$p1]}">
<table id="find_{[$smarty.request.tab]}">
	<tr>
		<td width="20%" align="right">供应商：</td>
		<td width="80%"><input type="text" name="supplier_s" id="supplier_s" value="" size="16" onmousemove="this.focus();" title="{[$t.supplier]}"> 
		<input type="button" value="查 找" name="button_find" id="button_find"> 
		<input type="reset" value="复 位" name="B2"></td>
	</tr>
</table>
</form>

<br />
<div id="result_{[$smarty.request.tab]}" class="result"></div>

<script type="text/javascript">
$(function() {	
	Tip.supplier();
	
	document.onkeydown = function(e) {
		if (!e) {
			e = window.event;//火狐中是 window.event
		}
		
		if ((e.keyCode || e.which) == 13) {
			return false;
		}
	}
	
	$("input[id^='button_find']:visible").click(function() {
		
		var supplier_s = $("input[id^='supplier_s']:visible").val();
		
		if (is_null(supplier_s)) {
			alert("供应商不能为空，请重新输入！");
			return;
		}
		
		post_find(this.form);
	});
});

</script>
